Skip to main content

Deploy a new version of your app

Prepare for Production

Once the ads have been tested and are correctly integrated, it's time to prepare your app for production release:

Switch to Production Configuration

  1. Replace Test IDs: If test placement IDs were used during development, replace them with your production application and placement IDs obtained in Get your configurations.

  2. Disable Test Mode and Verbose Logging: Ensure the test flag is set to false in your SDK initialization:

import XMediator

// Production configuration - disable test mode and verbose logging
let initSettings = InitSettings(
test: false, // Disable test mode for production
verbose: false, // Disable verbose logging for production
userProperties: UserProperties(
userId: "<your-user-id>",
customProperties: customProperties
)
)

XMediatorAds.startWith(appKey: "<your-app-key>",
initSettings: initSettings) { result in
print("Production SDK initialized successfully!")
// Start loading your production placements
}
Production Checklist

Before deploying to the App Store:

  • ✅ Set test: false to disable test ads
  • ✅ Set verbose: false to disable debug logging
  • ✅ Replace test placement IDs with production IDs
  • ✅ Verify all SKAdNetwork IDs are included in Info.plist
  • ✅ Test on physical devices with production configuration
  1. Review Configuration: Double-check that all placement IDs match your production setup in the admin panel.

Build Your App

With the production configuration in place, build your app for release:

  • Remove debug flags and verbose logging
  • Test on physical devices to ensure everything works correctly
  • Verify ad loading and display in production mode

Deploy to App Stores

Upload Your App

With the integration complete and configurations switched to production, you're ready to upload the new version of your app to:

  • Google Play Store (Android)
  • Apple App Store (iOS)

Post-Deployment Monitoring

After your app is live, monitor the performance of monetization, log in to the admin panel and access the dashboard section. There, you will find all the necessary information in real time.


Congratulations! 🎉

Thanks for trusting X3M! We're excited to help you succeed with your app's monetization.